/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package azure;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Gargravarr
 */
public class Manga implements Serializable
{
    public String mangaName, description;
    public int genre, mangaID, libraryID, publisherID;
    public ArrayList<Volume> volumes;
    public Enums.Format format;
    public int publishedYear;
    public boolean isModified;

    public Manga(int mangaID, int libraryID, String mangaName, String description, int publisherID, int publishedYear, int genreID)
    {
	this.mangaID = mangaID;
	this.libraryID = libraryID;
	this.mangaName = mangaName;
	this.description = description;
	this.publisherID = publisherID;
	this.publishedYear = publishedYear;
	this.genre = genreID;
	this.isModified = false;
	this.volumes = new ArrayList<Volume>();
    }

    public Manga()
    {
	this(0, 0, null, null, 0, 0, 0);
    }

    /**
     * Override toString so the Manga Name is shown instead. This makes using Manga objects with the TreeView simple-as
     * @return 
     */
    @Override
    public String toString()
    {
	return this.mangaName;
    }
}
